package io.netty.myExample.duyutian.dirctByteBuffer;

import java.nio.ByteBuffer;

/**
 * @author duyutian
 * @version 1.0
 * @date 2020/6/24 11:54
 */
public class DirectByteBufferTest {
    public static void main(String[] args) {
        /**
         * 申请堆外内存
         */
        ByteBuffer byteBuffer = ByteBuffer.allocateDirect(1000);
        /**
         * 申请堆内存
         */
        ByteBuffer allocate = ByteBuffer.allocate(1000);

    }
}
